package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SRole extends Object implements IMessageBase
    {
        public var level:int;
        public var experience:Number;
        public var career:int;
        public var life:int;
        public var mana:int;
        public var growthPower:int;
        public var growthAgile:int;
        public var growthHabitus:int;
        public var growthBrains:int;
        public var growthSpiritual:int;
        public var energy:int;
        public var nimbus:int;
        public var reserve1:int;
        public var reserve2:int;
        public var reserve3:int;
        public var reserve4:int;
        public const _type:int = 12002;
        public static var _regist:SRole = new SRole(true);

        public function SRole(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SRole();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.level);
            param1.writeLong(this.experience);
            param1.writeInt(this.career);
            param1.writeInt(this.life);
            param1.writeInt(this.mana);
            param1.writeInt(this.growthPower);
            param1.writeInt(this.growthAgile);
            param1.writeInt(this.growthHabitus);
            param1.writeInt(this.growthBrains);
            param1.writeInt(this.growthSpiritual);
            param1.writeInt(this.energy);
            param1.writeInt(this.nimbus);
            param1.writeInt(this.reserve1);
            param1.writeInt(this.reserve2);
            param1.writeInt(this.reserve3);
            param1.writeInt(this.reserve4);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.level = param1.readInt();
            this.experience = param1.readLong();
            this.career = param1.readInt();
            this.life = param1.readInt();
            this.mana = param1.readInt();
            this.growthPower = param1.readInt();
            this.growthAgile = param1.readInt();
            this.growthHabitus = param1.readInt();
            this.growthBrains = param1.readInt();
            this.growthSpiritual = param1.readInt();
            this.energy = param1.readInt();
            this.nimbus = param1.readInt();
            this.reserve1 = param1.readInt();
            this.reserve2 = param1.readInt();
            this.reserve3 = param1.readInt();
            this.reserve4 = param1.readInt();
            
        }

    }
}
